def fun_bmi(*person):
    '''功能：根据身高、体重计算BMI值'''
    for list_person in person:
        for item in list_person:
            person = item[0]
            height = item[1]
            weight = item[2]
            print(person + "的身高" + str(height) + "米\t体重：" + str(weight) + "千克")
            bmi = weight / (height * height)
            print("您的BMI指数是:" + str(bmi))
            # 判断体重是否合理
            if bmi < 18.5:
                print("您的体重过轻 ~@_@~")
            if bmi >= 18.5 and bmi < 24.9:
                print("正常范围，注意保持(-_-)")
            if bmi >= 24.9 and bmi < 29.9:
                print("您的体重过重 ~@_@~")
            if bmi >= 29.9:
                print("肥胖 ^@_@^")
# 调用函数
list_w = [["芙宁娜", 1.70, 65], ["钟离", 1.80, 70]]              
fun_bmi(list_w) 